{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2010.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Aug 2024, 13:15:22
{txt}
{com}. 
. import delimited "C:\Users\J.PARK\Dropbox\DISCRIMINATION PROJECT\FEVS\FEVS_2010-2019\FEVS2010_PRDF.csv"
{res}{txt}(encoding automatically selected: ISO-8859-1)
{res}{text}(92 vars, 263,475 obs)

{com}. drop if q17=="X"
{txt}(12,270 observations deleted)

{com}. drop if q17==""
{txt}(1,349 observations deleted)

{com}. drop if q37=="X"
{txt}(11,061 observations deleted)

{com}. drop if q37==""
{txt}(4,350 observations deleted)

{com}. drop if q38=="X"
{txt}(8,649 observations deleted)

{com}. drop if q38==""
{txt}(933 observations deleted)

{com}. drop if q15=="X"
{txt}(1,758 observations deleted)

{com}. drop if q15==""
{txt}(602 observations deleted)

{com}. drop if q22=="X"
{txt}(6,932 observations deleted)

{com}. drop if q22==""
{txt}(404 observations deleted)

{com}. drop if q25=="X"
{txt}(3,786 observations deleted)

{com}. drop if q25==""
{txt}(538 observations deleted)

{com}. drop if q33=="X"
{txt}(3,521 observations deleted)

{com}. drop if q33==""
{txt}(665 observations deleted)

{com}. drop if q48==.
{txt}(1,172 observations deleted)

{com}. drop if q49==.
{txt}(358 observations deleted)

{com}. destring q17, replace
{txt}q17: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q37, replace
{txt}q37: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q38, replace
{txt}q38: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q15, replace
{txt}q15: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q22, replace
{txt}q22: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q25, replace
{txt}q25: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q33, replace
{txt}q33: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if q55=="X"
{txt}(3,101 observations deleted)

{com}. drop if q55==""
{txt}(1,791 observations deleted)

{com}. drop if q45=="X"
{txt}(5,823 observations deleted)

{com}. drop if q45==""
{txt}(531 observations deleted)

{com}. drop if q34=="X"
{txt}(2,659 observations deleted)

{com}. drop if q34==""
{txt}(392 observations deleted)

{com}. destring q55, replace
{txt}q55: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q45, replace
{txt}q45: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. destring q34, replace
{txt}q34: all characters numeric; {res}replaced {txt}as {res}byte
{txt}
{com}. drop if dsuper=="X"
{txt}(0 observations deleted)

{com}. drop if dsuper==""
{txt}(4,414 observations deleted)

{com}. drop if dsex=="X"
{txt}(0 observations deleted)

{com}. drop if dsex==""
{txt}(1,048 observations deleted)

{com}. drop if dminority==.
{txt}(3,778 observations deleted)

{com}. gen minority = 0 if dminority==2
{txt}(59,358 missing values generated)

{com}. replace minority = 1 if dminority==1
{txt}(59,358 real changes made)

{com}. gen gender = 1 if dsex == "B"
{txt}(98,623 missing values generated)

{com}. replace gender = 0 if dsex == "A"
{txt}(98,623 real changes made)

{com}. gen supervisor = 1 if dsuper == "B" | dsuper == "C"
{txt}(121,748 missing values generated)

{com}. replace supervisor = 0 if dsuper == "A"
{txt}(121,748 real changes made)

{com}. 
. svyset [pweight=postwt]

{txt}Sampling weights:{col 19}{res}postwt
             {txt}VCE:{col 19}{res}linearized
     {txt}Single unit:{col 19}{res}missing
        {txt}Strata 1:{col 19}<one>
 Sampling unit 1:{col 19}<observations>
           FPC 1:{col 19}<zero>
{p2colreset}{...}

{com}. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:181,590}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,192,653}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:181,590}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:181,589}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8691145{col 33}{space 2} .0078661{col 44}{space 1}  110.49{col 53}{space 3}0.000{col 61}{space 4} .8536971{col 74}{space 3} .8845319
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9706379{col 33}{space 2} .0085704{col 44}{space 1}  113.25{col 53}{space 3}0.000{col 61}{space 4} .9538401{col 74}{space 3} .9874357
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .7062472{col 33}{space 2}  .009639{col 44}{space 1}   73.27{col 53}{space 3}0.000{col 61}{space 4}  .687355{col 74}{space 3} .7251395
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8437955{col 33}{space 2} .0042868{col 44}{space 1}  196.84{col 53}{space 3}0.000{col 61}{space 4} .8353935{col 74}{space 3} .8521976
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.509176{col 33}{space 2} .0198104{col 44}{space 1}  126.66{col 53}{space 3}0.000{col 61}{space 4} 2.470348{col 74}{space 3} 2.548004
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8227196{col 33}{space 2} .0054779{col 44}{space 1}  150.19{col 53}{space 3}0.000{col 61}{space 4}  .811983{col 74}{space 3} .8334562
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.599862{col 33}{space 2} .0231329{col 44}{space 1}  112.39{col 53}{space 3}0.000{col 61}{space 4} 2.554522{col 74}{space 3} 2.645202
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7209405{col 33}{space 2} .0065145{col 44}{space 1}  110.67{col 53}{space 3}0.000{col 61}{space 4} .7081721{col 74}{space 3} .7337088
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.436699{col 33}{space 2} .0168429{col 44}{space 1}  144.67{col 53}{space 3}0.000{col 61}{space 4} 2.403687{col 74}{space 3}  2.46971
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2}    .6186{col 33}{space 2}  .010486{col 44}{space 1}   58.99{col 53}{space 3}0.000{col 61}{space 4} .5980477{col 74}{space 3} .6391523
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.250506{col 33}{space 2} .0392104{col 44}{space 1}   82.90{col 53}{space 3}0.000{col 61}{space 4} 3.173654{col 74}{space 3} 3.327357
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7124822{col 33}{space 2} .0109106{col 44}{space 1}   65.30{col 53}{space 3}0.000{col 61}{space 4} .6910977{col 74}{space 3} .7338667
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.090608{col 33}{space 2} .0316032{col 44}{space 1}   97.79{col 53}{space 3}0.000{col 61}{space 4} 3.028667{col 74}{space 3}  3.15255
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8215848{col 33}{space 2} .0055512{col 44}{space 1}  148.00{col 53}{space 3}0.000{col 61}{space 4} .8107044{col 74}{space 3} .8324651
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  2.85561{col 33}{space 2} .0271017{col 44}{space 1}  105.37{col 53}{space 3}0.000{col 61}{space 4} 2.802491{col 74}{space 3} 2.908728
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8032904{col 33}{space 2} .0072437{col 44}{space 1}  110.89{col 53}{space 3}0.000{col 61}{space 4} .7890928{col 74}{space 3} .8174879
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.400657{col 33}{space 2} .0412319{col 44}{space 1}   82.48{col 53}{space 3}0.000{col 61}{space 4} 3.319843{col 74}{space 3} 3.481471
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2}  .938495{col 33}{space 2} .0034888{col 44}{space 1}  269.00{col 53}{space 3}0.000{col 61}{space 4} .9316571{col 74}{space 3}  .945333
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.795194{col 33}{space 2} .0503308{col 44}{space 1}   75.40{col 53}{space 3}0.000{col 61}{space 4} 3.696547{col 74}{space 3} 3.893841
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9093628{col 33}{space 2} .0047187{col 44}{space 1}  192.71{col 53}{space 3}0.000{col 61}{space 4} .9001142{col 74}{space 3} .9186114
{txt}{space 14}_cons {c |}{col 21}{res}{space 2}  4.08837{col 33}{space 2}  .060082{col 44}{space 1}   68.05{col 53}{space 3}0.000{col 61}{space 4} 3.970611{col 74}{space 3}  4.20613
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2} .2880091{col 33}{space 2} .0072344{col 61}{space 4} .2741733{col 74}{space 3} .3025432
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3231324{col 33}{space 2} .0090136{col 61}{space 4} .3059403{col 74}{space 3} .3412907
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4802449{col 33}{space 2} .0093932{col 61}{space 4} .4621828{col 74}{space 3} .4990127
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6173341{col 33}{space 2} .0129733{col 61}{space 4} .5924233{col 74}{space 3} .6432923
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4923691{col 33}{space 2} .0155472{col 61}{space 4} .4628207{col 74}{space 3}  .523804
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3249985{col 33}{space 2} .0091216{col 61}{space 4} .3076031{col 74}{space 3} .3433776
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3547246{col 33}{space 2} .0116377{col 61}{space 4} .3326329{col 74}{space 3} .3782834
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1192271{col 33}{space 2} .0065484{col 61}{space 4}  .107059{col 74}{space 3} .1327782
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1730592{col 33}{space 2} .0085821{col 61}{space 4} .1570302{col 74}{space 3} .1907245
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2}   .24464{col 33}{space 2} .0136731{col 61}{space 4} .2192568{col 74}{space 3} .2729619
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2}  .057862{col 33}{space 2} .0166375{col 61}{space 4} .0329336{col 74}{space 3} .1016596
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5012148{col 33}{space 2} .0136151{col 61}{space 4} .4752276{col 74}{space 3} .5286232
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.038}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.953}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. predict justice, latent(JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:181,590}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,192,653}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:181,590}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:181,589}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6669338{col 27}{space 2} .0102888{col 38}{space 1}   64.82{col 47}{space 3}0.000{col 55}{space 4}  .646768{col 68}{space 3} .6870995
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.475865{col 27}{space 2} .0436219{col 38}{space 1}   79.68{col 47}{space 3}0.000{col 55}{space 4} 3.390367{col 68}{space 3} 3.561363
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7258044{col 27}{space 2} .0164165{col 38}{space 1}   44.21{col 47}{space 3}0.000{col 55}{space 4} .6936284{col 68}{space 3} .7579804
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.65744{col 27}{space 2} .0474166{col 38}{space 1}   77.13{col 47}{space 3}0.000{col 55}{space 4} 3.564505{col 68}{space 3} 3.750376
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8063356{col 27}{space 2} .0105236{col 38}{space 1}   76.62{col 47}{space 3}0.000{col 55}{space 4} .7857097{col 68}{space 3} .8269616
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.562205{col 27}{space 2} .0396588{col 38}{space 1}   89.82{col 47}{space 3}0.000{col 55}{space 4} 3.484475{col 68}{space 3} 3.639935
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5551994{col 27}{space 2} .0137239{col 55}{space 4} .5289421{col 68}{space 3} .5827601
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2}  .473208{col 27}{space 2} .0238304{col 55}{space 4} .4287321{col 68}{space 3} .5222977
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3498228{col 27}{space 2} .0169711{col 55}{space 4} .3180924{col 68}{space 3} .3847185
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.790}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. predict diversity, latent(DIVERSITY)
{res}{txt}
{com}. 
. keep if agency =="AM" | agency =="IB" | agency =="FQ" | agency =="ED" | agency =="DN" | agency =="HU" | agency =="ST" | agency =="EP" | agency =="EE" | agency =="FC" | agency =="FT" | agency =="GS" | agency =="NN" | agency =="NQ" | agency =="CU" | agency =="SN" | agency =="NL" | agency =="NF" | agency =="NU" | agency =="OM" | agency =="BG" | agency =="RR" | agency =="SE" | agency =="SB" | agency =="SZ" | subelem =="DD34" | subelem =="DD10" | subelem =="DD63" | subelem =="DD35" | subelem =="DD04" | subelem =="DD07" | subelem =="DD27" | subelem =="DD60" | subelem =="AG03" | subelem =="AGFA" | subelem =="AG37" | subelem =="AG11" | subelem =="AG16" | subelem =="AG90" | subelem =="CM63" | subelem =="CM55" | subelem =="CM57" | subelem =="CM54" | subelem =="CM56" | subelem =="DD16" | subelem =="HE90" | subelem =="HE39" | subelem =="HE70" | subelem =="HE36" | subelem =="HE34" | subelem =="HE37" | subelem =="HE38" | subelem =="HE10" | subelem =="HSCB" | subelem =="HSBE" | subelem =="HSBC" | subelem =="HSAB" | subelem =="HSAC" | subelem =="HSBD" | subelem =="HSBB" | subelem =="HSAD" | subelem =="DJ15" | subelem =="DJ03" | subelem =="DEA" | subelem =="DJ12" | subelem =="DJ09" | subelem =="DJ02" | subelem =="DJ08" | subelem =="DJ11" | subelem =="DLLS" | subelem =="DLET" | subelem =="DLMS" | subelem =="DLSH" | subelem =="DLPW" | agency =="AF" | agency =="AR" | subelem =="IN06" | subelem =="IN05" | subelem =="IN07" | subelem =="IN15" | subelem =="IN08" | subelem =="IN10" | subelem =="IN01" | agency =="NV" | subelem =="TRAI" | subelem =="TR91" | subelem =="TR93" | subelem =="TRAJ" | subelem =="TRTG" | subelem =="TRAD" | subelem =="TD02" | subelem =="TD03" | subelem =="VAPA" | subelem =="VALA" | subelem =="VATA" | subelem =="DD21"
{txt}(19,820 observations deleted)

{com}. 
. svy linearized : sem (JUSTICE -> DISTRIBUTIVE, ) (JUSTICE -> PROCEDURAL, ) (JUSTICE -> INTERPERSONAL, ) (DISTRIBUTIVE -> q22, ) (DISTRIBUTIVE -> q25, ) (DISTRIBUTIVE -> q33, ) (PROCEDURAL -> q15, ) (PROCEDURAL -> q17, ) (PROCEDURAL -> q37, ) (PROCEDURAL -> q38, )(INTERPERSONAL -> q48, ) (INTERPERSONAL -> q49, ), standardized latent(JUSTICE DISTRIBUTIVE PROCEDURAL INTERPERSONAL ) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:161,770}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,125,683}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:161,770}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:161,769}

{p 0 7}{space 1}{text:( 1)}{space 1} [q22]DISTRIBUTIVE = 1{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} [q15]PROCEDURAL = 1{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} [q48]INTERPERSONAL = 1{p_end}
{p 0 7}{space 1}{text:( 4)}{space 1} [DISTRIBUTIVE]JUSTICE = 1{p_end}
{txt}{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}  Linearized
{col 1}       Standardized{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural         {col 21}{txt}{c |}
{space 2}{col 3}DISTRIBUTIVE     {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .8685517{col 33}{space 2} .0083088{col 44}{space 1}  104.53{col 53}{space 3}0.000{col 61}{space 4} .8522666{col 74}{space 3} .8848368
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}PROCEDURAL       {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2} .9709193{col 33}{space 2} .0090418{col 44}{space 1}  107.38{col 53}{space 3}0.000{col 61}{space 4} .9531975{col 74}{space 3}  .988641
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}INTERPERSONAL    {col 21}{c |}
{space 12}JUSTICE {c |}{col 21}{res}{space 2}  .705776{col 33}{space 2} .0101929{col 44}{space 1}   69.24{col 53}{space 3}0.000{col 61}{space 4} .6857982{col 74}{space 3} .7257538
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement        {col 21}{txt}{c |}
{space 2}{col 3}q22              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8440634{col 33}{space 2} .0045265{col 44}{space 1}  186.47{col 53}{space 3}0.000{col 61}{space 4} .8351916{col 74}{space 3} .8529352
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.505797{col 33}{space 2} .0208269{col 44}{space 1}  120.32{col 53}{space 3}0.000{col 61}{space 4} 2.464977{col 74}{space 3} 2.546618
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q25              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .8228624{col 33}{space 2} .0057892{col 44}{space 1}  142.14{col 53}{space 3}0.000{col 61}{space 4} .8115157{col 74}{space 3} .8342091
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.593599{col 33}{space 2}  .024267{col 44}{space 1}  106.88{col 53}{space 3}0.000{col 61}{space 4} 2.546037{col 74}{space 3} 2.641162
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q33              {col 21}{c |}
{space 7}DISTRIBUTIVE {c |}{col 21}{res}{space 2} .7200183{col 33}{space 2} .0068941{col 44}{space 1}  104.44{col 53}{space 3}0.000{col 61}{space 4}  .706506{col 74}{space 3} .7335307
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.432079{col 33}{space 2} .0176865{col 44}{space 1}  137.51{col 53}{space 3}0.000{col 61}{space 4} 2.397413{col 74}{space 3} 2.466744
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q15              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .6175846{col 33}{space 2} .0110851{col 44}{space 1}   55.71{col 53}{space 3}0.000{col 61}{space 4}  .595858{col 74}{space 3} .6393112
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.246207{col 33}{space 2} .0412896{col 44}{space 1}   78.62{col 53}{space 3}0.000{col 61}{space 4}  3.16528{col 74}{space 3} 3.327133
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q17              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .7113194{col 33}{space 2} .0115494{col 44}{space 1}   61.59{col 53}{space 3}0.000{col 61}{space 4} .6886828{col 74}{space 3} .7339559
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.094575{col 33}{space 2} .0335089{col 44}{space 1}   92.35{col 53}{space 3}0.000{col 61}{space 4} 3.028899{col 74}{space 3} 3.160252
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q37              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8218566{col 33}{space 2} .0058629{col 44}{space 1}  140.18{col 53}{space 3}0.000{col 61}{space 4} .8103653{col 74}{space 3} .8333478
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 2.853297{col 33}{space 2} .0285701{col 44}{space 1}   99.87{col 53}{space 3}0.000{col 61}{space 4}   2.7973{col 74}{space 3} 2.909294
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q38              {col 21}{c |}
{space 9}PROCEDURAL {c |}{col 21}{res}{space 2} .8023293{col 33}{space 2} .0076703{col 44}{space 1}  104.60{col 53}{space 3}0.000{col 61}{space 4} .7872957{col 74}{space 3} .8173629
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.402024{col 33}{space 2} .0436287{col 44}{space 1}   77.98{col 53}{space 3}0.000{col 61}{space 4} 3.316512{col 74}{space 3} 3.487535
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q48              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9398247{col 33}{space 2} .0036592{col 44}{space 1}  256.84{col 53}{space 3}0.000{col 61}{space 4} .9326528{col 74}{space 3} .9469965
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 3.785137{col 33}{space 2}  .052799{col 44}{space 1}   71.69{col 53}{space 3}0.000{col 61}{space 4} 3.681652{col 74}{space 3} 3.888622
{space 2}{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q49              {col 21}{c |}
{space 6}INTERPERSONAL {c |}{col 21}{res}{space 2} .9085239{col 33}{space 2} .0049866{col 44}{space 1}  182.19{col 53}{space 3}0.000{col 61}{space 4} .8987503{col 74}{space 3} .9182975
{txt}{space 14}_cons {c |}{col 21}{res}{space 2} 4.079244{col 33}{space 2} .0631137{col 44}{space 1}   64.63{col 53}{space 3}0.000{col 61}{space 4} 3.955543{col 74}{space 3} 4.202946
{txt}{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 10}var(e.q22){c |}{col 21}{res}{space 2}  .287557{col 33}{space 2} .0076413{col 61}{space 4} .2729636{col 74}{space 3} .3029306
{txt}{space 10}var(e.q25){c |}{col 21}{res}{space 2} .3228975{col 33}{space 2} .0095274{col 61}{space 4} .3047537{col 74}{space 3} .3421215
{txt}{space 10}var(e.q33){c |}{col 21}{res}{space 2} .4815736{col 33}{space 2} .0099278{col 61}{space 4} .4625032{col 74}{space 3} .5014303
{txt}{space 10}var(e.q15){c |}{col 21}{res}{space 2} .6185892{col 33}{space 2}  .013692{col 61}{space 4}  .592327{col 74}{space 3} .6460159
{txt}{space 10}var(e.q17){c |}{col 21}{res}{space 2} .4940248{col 33}{space 2} .0164306{col 61}{space 4} .4628483{col 74}{space 3} .5273012
{txt}{space 10}var(e.q37){c |}{col 21}{res}{space 2} .3245518{col 33}{space 2}  .009637{col 61}{space 4} .3062027{col 74}{space 3} .3440005
{txt}{space 10}var(e.q38){c |}{col 21}{res}{space 2} .3562677{col 33}{space 2} .0123082{col 61}{space 4} .3329425{col 74}{space 3}  .381227
{txt}{space 10}var(e.q48){c |}{col 21}{res}{space 2} .1167296{col 33}{space 2} .0068779{col 61}{space 4} .1039983{col 74}{space 3} .1310195
{txt}{space 10}var(e.q49){c |}{col 21}{res}{space 2} .1745843{col 33}{space 2} .0090609{col 61}{space 4} .1576986{col 74}{space 3} .1932781
{txt}{space 1}var(e.DISTRIBUTIVE){c |}{col 21}{res}{space 2}  .245618{col 33}{space 2} .0144333{col 61}{space 4} .2188974{col 74}{space 3} .2756003
{txt}{space 3}var(e.PROCEDURAL){c |}{col 21}{res}{space 2} .0573158{col 33}{space 2} .0175578{col 61}{space 4} .0314427{col 74}{space 3} .1044787
{txt}var(e.INTERPERSONAL){c |}{col 21}{res}{space 2} .5018802{col 33}{space 2} .0143878{col 61}{space 4} .4744581{col 74}{space 3} .5308872
{txt}{space 8}var(JUSTICE){c |}{col 21}{res}{space 2}        1{col 33}{space 2}        .{col 61}{space 4}        .{col 74}{space 3}        .
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.038}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.954}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. predict justice2, latent (JUSTICE)
{res}{txt}
{com}. 
. svy linearized : sem (DIVERSITY -> q34, ) (DIVERSITY -> q45, ) (DIVERSITY -> q55, ), standardized latent(DIVERSITY) nocapslatent
{res}{txt}(running {bf:sem} on estimation sample)
{res}
{txt}{col 1}Survey: Structural equation model{col 52}{lalign 15:Number of obs}{col 67} = {res}{ralign 9:161,770}
{txt}{col 1}{lalign 16:Number of strata}{col 17} = {res}{ralign 7:1}{txt}{col 52}{lalign 15:Population size}{col 67} = {res}{ralign 9:1,125,683}
{txt}{col 1}{lalign 16:Number of PSUs}{col 17} = {res}{ralign 7:161,770}{txt}{col 52}{lalign 15:Design df}{col 67} = {res}{ralign 9:161,769}

{p 0 7}{space 1}{text:( 1)}{space 1} [q34]DIVERSITY = 1{p_end}
{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 15}{c |}{col 27}  Linearized
{col 1} Standardized{col 15}{c |} Coefficient{col 27}  std. err.{col 39}      t{col 47}   P>|t|{col 55}     [95% con{col 68}f. interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Measurement  {col 15}{txt}{c |}
{space 2}{col 3}q34        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .6654281{col 27}{space 2} .0109093{col 38}{space 1}   61.00{col 47}{space 3}0.000{col 55}{space 4} .6440462{col 68}{space 3} .6868101
{txt}{space 8}_cons {c |}{col 15}{res}{space 2}  3.47972{col 27}{space 2}  .046276{col 38}{space 1}   75.19{col 47}{space 3}0.000{col 55}{space 4}  3.38902{col 68}{space 3}  3.57042
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q45        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .7237843{col 27}{space 2} .0174022{col 38}{space 1}   41.59{col 47}{space 3}0.000{col 55}{space 4} .6896762{col 68}{space 3} .7578923
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.651233{col 27}{space 2} .0498818{col 38}{space 1}   73.20{col 47}{space 3}0.000{col 55}{space 4} 3.553466{col 68}{space 3}    3.749
{space 2}{txt}{hline 12}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}q55        {col 15}{c |}
{space 4}DIVERSITY {c |}{col 15}{res}{space 2} .8072332{col 27}{space 2} .0111831{col 38}{space 1}   72.18{col 47}{space 3}0.000{col 55}{space 4} .7853145{col 68}{space 3} .8291519
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 3.561284{col 27}{space 2} .0418794{col 38}{space 1}   85.04{col 47}{space 3}0.000{col 55}{space 4} 3.479201{col 68}{space 3} 3.643367
{txt}{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}var(e.q34){c |}{col 15}{res}{space 2} .5572054{col 27}{space 2} .0145187{col 55}{space 4} .5294635{col 68}{space 3} .5864009
{txt}{space 4}var(e.q45){c |}{col 15}{res}{space 2} .4761363{col 27}{space 2} .0251909{col 55}{space 4} .4292363{col 68}{space 3} .5281608
{txt}{space 4}var(e.q55){c |}{col 15}{res}{space 2} .3483745{col 27}{space 2} .0180548{col 55}{space 4} .3147254{col 68}{space 3} .3856212
{txt}var(DIVERSITY){c |}{col 15}{res}{space 2}        1{col 27}{space 2}        .{col 55}{space 4}        .{col 68}{space 3}        .
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat gof, stats(all)
{res}
{txt}{hline 21}{c TT}{hline 54}
{lalign 21:Fit statistic}{c |}      Value   Description
{hline 21}{c +}{hline 54}
{lalign 21:Size of residuals}{c |}
{ralign 20:SRMR} {c |} {res}{ralign 10:     0.000}{txt}   Standardized root mean squared residual
{ralign 20:CD} {c |} {res}{ralign 10:     0.790}{txt}   Coefficient of determination
{hline 21}{c BT}{hline 54}
{p 0 2 2 75}Note: model was fit with{txt} svy: prefix; only stats(residuals) valid.{p_end}

{com}. predict diversity2, latent (DIVERSITY)
{res}{txt}
{com}. 
. sum justice, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.165148      -2.311803
{txt} 5%    {res}-1.527881      -2.311803
{txt}10%    {res}-1.063804      -2.311803       {txt}Obs         {res}    161,770
{txt}25%    {res}-.3518957      -2.311803       {txt}Sum of wgt. {res}    161,770

{txt}50%    {res} .2353879                      {txt}Mean          {res} .0990673
                        {txt}Largest       Std. dev.     {res} .8123376
{txt}75%    {res} .6487734        1.40178
{txt}90%    {res} 1.080657        1.40178       {txt}Variance      {res} .6598923
{txt}95%    {res} 1.286214        1.40178       {txt}Skewness      {res}-.7249143
{txt}99%    {res}  1.40178        1.40178       {txt}Kurtosis      {res} 3.206929
{txt}
{com}. sum justice2, detail

                   {txt}Factor score (JUSTICE)
{hline 61}
      Percentiles      Smallest
 1%    {res}-2.159441      -2.305609
{txt} 5%    {res} -1.52349      -2.305609
{txt}10%    {res}-1.059374      -2.305609       {txt}Obs         {res}    161,770
{txt}25%    {res}-.3481119      -2.305609       {txt}Sum of wgt. {res}    161,770

{txt}50%    {res} .2395414                      {txt}Mean          {res} .1030681
                        {txt}Largest       Std. dev.     {res}  .811914
{txt}75%    {res} .6522601        1.40478
{txt}90%    {res}  1.08448        1.40478       {txt}Variance      {res} .6592044
{txt}95%    {res} 1.290933        1.40478       {txt}Skewness      {res} -.724736
{txt}99%    {res}  1.40478        1.40478       {txt}Kurtosis      {res} 3.205868
{txt}
{com}. sum diversity, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.865631      -1.865631
{txt} 5%    {res}-1.149154      -1.865631
{txt}10%    {res}-.7366837      -1.865631       {txt}Obs         {res}    161,770
{txt}25%    {res}-.2598722      -1.865631       {txt}Sum of wgt. {res}    161,770

{txt}50%    {res} .2436841                      {txt}Mean          {res} .0588803
                        {txt}Largest       Std. dev.     {res} .6020973
{txt}75%    {res} .4566054       .9467893
{txt}90%    {res} .7789372       .9467893       {txt}Variance      {res} .3625212
{txt}95%    {res} .9467893       .9467893       {txt}Skewness      {res}-.8605139
{txt}99%    {res} .9467893       .9467893       {txt}Kurtosis      {res}  3.86347
{txt}
{com}. sum diversity2, detail

                  {txt}Factor score (DIVERSITY)
{hline 61}
      Percentiles      Smallest
 1%    {res}-1.857375      -1.857375
{txt} 5%    {res}-1.146589      -1.857375
{txt}10%    {res}-.7355008      -1.857375       {txt}Obs         {res}    161,770
{txt}25%    {res}-.2550831      -1.857375       {txt}Sum of wgt. {res}    161,770

{txt}50%    {res} .2451939                      {txt}Mean          {res}  .060808
                        {txt}Largest       Std. dev.     {res} .6004073
{txt}75%    {res} .4557028         .94605
{txt}90%    {res} .7792911         .94605       {txt}Variance      {res}  .360489
{txt}95%    {res}   .94605         .94605       {txt}Skewness      {res}-.8605898
{txt}99%    {res}   .94605         .94605       {txt}Kurtosis      {res} 3.861884
{txt}
{com}. corr justice justice2
{txt}(obs=161,770)

             {c |}  justice justice2
{hline 13}{c +}{hline 18}
     justice {c |}{res}   1.0000
    {txt}justice2 {c |}{res}   1.0000   1.0000

{txt}
{com}. corr diversity diversity2 
{txt}(obs=161,770)

             {c |} divers~y divers~2
{hline 13}{c +}{hline 18}
   diversity {c |}{res}   1.0000
  {txt}diversity2 {c |}{res}   1.0000   1.0000

{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\J.PARK\Dropbox\Discrimination Project_for me\Organizational Diversity\2023 Version_Merging\FINAL\CFA_2010.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Aug 2024, 13:16:09
{txt}{.-}
{smcl}
{txt}{sf}{ul off}